package cn.stylefeng.guns.modular.gridsystem.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 声卡请求封装类
 *
 * @author zxw 2022/12/15 11:15
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SoundCardParam extends BaseParam {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {edit.class, delete.class})
    private Long id;

    /**
     * 编码
     */
    @NotEmpty(message = "编码不能为空", groups = {add.class})
    @Size(max = 50, message = "编码不能超过最大长度50", groups = {add.class})
    private String code;

    /**
     * 声卡名称
     */
    @NotEmpty(message = "声卡名称不能为空", groups = {add.class, edit.class})
    @Size(max = 200, message = "声卡名称不能超过最大长度200", groups = {add.class, edit.class})
    private String cardName;

    /**
     * 声卡识别名称
     */
    @NotEmpty(message = "声卡识别名称不能为空", groups = {add.class, edit.class})
    @Size(max = 50, message = "声卡识别名称不能超过最大长度50", groups = {add.class, edit.class})
    private String distinguishCode;

    /**
     * 声道数量
     */
    @NotNull(message = "声道数量不能为空", groups = {add.class, edit.class})
    private Integer vocalTractNumber;

}
